package com.lingz.manager.modules.wuxue.mapper;

import com.lingz.manager.config.mybatisplus.ExpandBaseMapper;
import com.lingz.manager.modules.wuxue.entity.TuopuInsectData;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * @Classname TuopuInsectDataMapper
 * @Description TODO
 * @Date 2023/11/30 19:22
 * @Created by mjh
 */
@Component
public interface TuopuInsectDataMapper extends ExpandBaseMapper<TuopuInsectData> {
    @Select("SELECT img_url FROM w_tuopu_insect_data ORDER BY img_time DESC LIMIT 1")
    String getLatestImgUrlByDeviceId(String deviceId);
}
